package cn.tedu.exception;

public class ThrowDemo {
    public static void main(String[] args) {
        System.out.println("程序开始了");
        Person p = new Person();
        try {
            p.setAge(1000);
        } catch (IllegalAgeException  e) {
            e.printStackTrace();
        }

    }
}
